<?php

namespace App\Models;

/**
 * Apply Model.
 */
class ApplyHasPlayer extends Model
{
    protected $table = 'apply_has_players';
    /**
     * 可以被批量赋值的属性.
     *
     * @var array
     */
    protected $fillable = [
        'apply_id',
        'user_id',
        'user_level'
    ];

    /**
     * user
     */
    public function user()
    {
        return $this->belongsTo('App\Models\User');
    }

    /**
     * apply
     */
    public function apply()
    {
        return $this->belongsTo('App\Models\Apply');
    }
}
